<template>
  <h1>
    这是在登录页面引入的注册页面
  </h1>
  <button @click="btn">操作</button>
  <slot name="name2"></slot>
  <slot name="name1"></slot>
</template>

<script setup lang='ts'>
import { ref, inject,computed,provide} from 'vue'
// import { useStore } from 'vuex'
// const store = useStore()
// console.log(store)
// const msg2:any = inject('loginMsg')

let {proxy} = getCurrentInstance() as any
const btn=()=>{
  proxy.$showMessage({
    msg: '我是帅哥',
    isShow: true,
    duration: 1000
  })
}


// const count = computed(()=>{
//   return store.state.count
// })
// console.log(count,'count')
</script>
<script lang='ts'>
import {
defineAsyncComponent,
    defineComponent, getCurrentInstance, reactive
} from 'vue';
export default defineComponent({
    name:'Register',
    setup () {}
})
</script>

<style scoped lang='scss'>
</style>